package com.yixing.tech.common.vo.s8;

import com.yixing.tech.common.base.BaseVO;
import com.yixing.tech.common.vo.s3.DictVO;
import com.yixing.tech.common.vo.s5.EntitySchema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Set;

/**
 * @author yixing tech
 * at 2022/5/19
 * describe：
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ProcessDefinitionVO extends BaseVO {
    String name;
    String version;
    DictVO group;
    String status;
    EntitySchema formObj;
    String deploymentId;
    String desc;
    String resourceUrl;
    String diagramResourceUrl;
    String definitionKey;
    String definitionId;
    Set<String> startFormVariables;
    String content;
    List<Approver> approvers;
    /**
     * 关键词配置,把表单里的某个字段当作流程的关键词
     */
    String keyStrAttr;
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Approver {
        String strategy;
        String key;
        String value;

    }
}
